package com.codecrane.core.util;

import lombok.extern.slf4j.Slf4j;

/**
 * 命令行工具类
 * Created by crane on 2017/6/12.
 */
@Slf4j
public class RuntimeUtil {
    /**
     * 执行命令
     *
     * @param execStr
     */
    public static void execte(String execStr) {
        try {
            Runtime.getRuntime().exec(execStr);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
